package com.zhengtoon.mctoon.conv.dao.sdzc;

import org.apache.ibatis.annotations.Param;

import com.zhengtoon.mctoon.conv.bean.sdzc.ReplyAttachment;

/**
 * 回复附件DAO接口
 *
 * @author 刘振华
 * @since 2017-04-12
 * Copyright: Copyright (c) 2017
 * Company:北京政务通有限公司
 */
public interface ReplyAttachmentMapper {


    /**
     * 查询回复附件
     *
     * @param ghlReplyAttachId, ghlReplyAttachName, ghlReplyAttachContent, createTime, updateTime
     * @return ReplyAttachmentRow
     */
    ReplyAttachment selectSingle(String ghlReplyAttachId, String ghlReplyAttachName, String ghlReplyAttachContent, String createTime, String updateTime);

    /**
     * 插入附件	144637
     *
     * @param replyAttach
     */
    void insertReplyAttachment(ReplyAttachment replyAttach);

    /**
     * 查询附件id是否存在   144637
     *
     * @param replyAttachId
     * @return
     */
    Integer queryAttachIdCount(@Param("replyAttachId") String replyAttachId);
}